<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<%@ page import="com.puneMovies.data.Theater" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="/tags/struts-tiles"%>

<!-- saved from url=(0023)http://www.pune360.com/ -->
<HTML><HEAD><TITLE>Pune's complete web portal. Pune Classifieds, Pune Real Estate, Pune News, Pune Writing Wall (Editorial), Pune Jobs</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<LINK 
href="puneHome_files/sample1.css" type=text/css rel=stylesheet>
<STYLE type=text/css>
BODY {
	BACKGROUND-IMAGE: url(http://www.pune360.com/images/main_bg2.gif)
}
.style3 {
	COLOR: #ffffff
}
.style6 {
	
}
.style7 {font-size: 14px}
.style9 {font-size: 12px}

#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
/*Remove below line to remove shadow. Below line should always appear last within this CSS*/
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}

</STYLE>


<!-- Start of StatCounter Code -->
<SCRIPT language=javascript type=text/javascript>

// mouse over script 
var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";

var tipTitle=document.all? document.all["toolTipTitle"] : document.getElementById? document.getElementById("toolTipTitle") : "";

var tipText=document.all? document.all["toolTipText"] : document.getElementById? document.getElementById("toolTipText") : "";

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function ddrivetip(imgElem ){
tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";
tipTitle=document.all? document.all["toolTipTitle"] : document.getElementById? document.getElementById("toolTipTitle") : "";
tipText=document.all? document.all["toolTipText"] : document.getElementById? document.getElementById("toolTipText") : "";
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
var imgId=imgElem;
var theTextId=imgId+"Text";
var theTitleId=imgId+"Title";
var theText=document.getElementById(theTextId).innerHTML;
var theTitle=document.getElementById(theTitleId).innerHTML;
tipTitle.innerHTML=theTitle;
tipText.innerHTML=theText;
document.onmousemove=positiontip
enabletip=true;
return false
}
}

function positiontip(e){
if (enabletip){
tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";
tipTitle=document.all? document.all["toolTipTitle"] : document.getElementById? document.getElementById("toolTipTitle") : "";
tipText=document.all? document.all["toolTipText"] : document.getElementById? document.getElementById("toolTipText") : "";

var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}


//mouse over end 


var sc_project=1784629;
var sc_invisible=1;
var sc_partition=16;
var sc_security="c4ed3cc9";
var timeSlotArr=new Array();
function timeSlotObj(timeSlotId,usualTime)
{
 this.timeSlotId=timeSlotId;
 this.usualTime=usualTime;
}
 <c:forEach var="timeslot" items="${requestScope.timeSlotArr}" varStatus="status" >
	timeSlotArr['<c:out value="${timeslot.timeSlotId}" />']=new timeSlotObj('<c:out value="${timeslot.timeSlotId}" />','<c:out value="${timeslot.usualTime}" />');
 </c:forEach>
function addTheater()
{

 window.open('openAddTheater.do',null,
    "height=300,width=400,status=yes,toolbar=no,menubar=no,location=no");

}
function deleteTheater(theaterId)
{

document.location.href='deleteTheater.do?actionRequest=deleteTheater&theaterId='+theaterId;
}
function modifyTheater(theaterId)
{

  window.open('openModifyTheater.do?actionRequest=openModifyTheater&theaterId='+theaterId,null,
    "height=300,width=400,status=yes,toolbar=no,menubar=no,location=no");


}
function getTimeSlots()
{
 
   var theaterId=document.getElementById('theaterId').value;
   alert('timeslots '+theaterId);
   document.location.href='manageTimeslots.do?actionRequest=getListTimeSlots&theaterId='+theaterId;
   
}
function removeLastTimeSlot()
{
 alert('removeLastTimeSlot');
 var timeslotSelect= document.getElementById('timeSlot');
 var timeslotId=timeslotSelect.options[timeslotSelect.options.length-1].value;
 alert('timeSlot Id is  '+timeslotId);
 document.location.href='manageTimeslots.do?actionRequest=removeTimeslot&timeslotId='+timeslotId;

}

function setModifiedTime()
{
  alert('setModifiedTime');
  var timeslotSelect= document.getElementById('timeSlot');
  var timeslotId=timeslotSelect.value;
  var timeslotText=timeSlotArr[timeslotId].usualTime;
  alert(' timeSlotText '+timeslotText);
  document.getElementById('modifiedTime').value=timeslotText;
  
}

function modifyTimeslot()
{
  alert('inside modifyTimeslot');
  var usualTime=document.getElementById('modifiedTime').value;
  var timeslotId=document.getElementById('timeSlot').value; 
  var theaterId=document.getElementById('theaterId').value;
  alert('timeslotId '+timeslotId);
  alert('usualTime  '+usualTime);  
  document.location.href='manageTimeslots.do?actionRequest=modifyTimeSlot&timeslotId='+timeslotId+'&usualTime='+usualTime+'&theaterId='+theaterId;

}
function addTimeslot()
{
alert('addTimeslot');
var slotHours=document.getElementById('slotHours').value;
var slotMin1=document.getElementById('slotMin1').value;
var slotMin2=document.getElementById('slotMin2').value;
alert('slotMin2 '+slotMin2);
var slotZone=document.getElementById('slotZone').value;
var timeslotText=slotHours+':'+slotMin1+slotMin2+' '+slotZone;
alert('timeslotText is '+timeslotText);
var theaterId=document.getElementById('theaterId').value;
document.location.href='manageTimeslots.do?actionRequest=createTimeSlot&timeslotText='+timeslotText+'&theaterId='+theaterId; 

}

function addActor()
{
alert('inside addActor()');
var firstName=document.getElementById('firstName').value;
var lastName=document.getElementById('lastName').value;
alert('lastName is '+lastName);
document.location.href='manageActors.do?actionRequest=createActor&firstName='+firstName+'&lastName='+lastName;


}

function removeActor()
{
alert('inside removeActor()');
var actorId=document.getElementById('actorId').value;
document.location.href='manageActors.do?actionRequest=removeActor&actorId='+actorId;


}

function addMovie()
{

 window.open('manageMovies.do?actionRequest=openAddMovie',null,
    "height=350,width=400,status=yes,toolbar=no,menubar=no,location=no");

}
function addActorsToMovie()
{
 alert('addActorsToMovie');
 var actorList=document.getElementById('actorList');
 var actorsInMovie=document.getElementById('actorsInMovie');

}
function getTimeSlotsAndMoviesByTheater()
{
var theaterId=document.getElementById('theaterId').value;
document.location.href='linkMovies.do?actionRequest=linkMovies&theaterId='+theaterId;

}

function linkMoviesToTheaters()
{
 if(document.getElementById('theaterId').value!='' 
 && document.getElementById('timeSlotId').value!='' 
 && document.getElementById('movieId').value!=''  
 && document.getElementById('dateOfShow').value!='')
 {
    alert('linkMoviesToTheaters');
    document.getElementById('actionRequest').value='addLink' 
	document.forms[1].submit();
  }


}
</SCRIPT>

<SCRIPT language=javascript src="puneHome_files/counter.js" 
type=text/javascript></SCRIPT>
<NOSCRIPT>
<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<%
Theater[] theaterArr=(Theater[]) request.getAttribute("Theater_Array");

%>
<BODY leftMargin=0 topMargin=0>

<!-- Mouse Over Code Starts -->





<!-- MOuse Over code ends -->



<A href="http://www.statcounter.com/" 
target=_blank><IMG alt="counter free hit unique web" 
src="images/counter.gif" border=0></A> </NOSCRIPT><!-- End of StatCounter Code -->
<LINK 
href="include\sample1(1).css" 
type=text/css rel=stylesheet>
<STYLE type=text/css>BODY {
	BACKGROUND-IMAGE: url(http://www.pune360.com/images/main_bg2.gif)
}
.style6 {
	COLOR: #ffffff
}
</STYLE>
<div id="dhtmltooltip" style="display:block;visibility:hidden">
<table width="300" height="157" bgcolor="#FFFFFF">
<tr height="15%">
<td height="21" bgcolor="#4AAACA">
<div id="toolTipTitle"></div>
</td>
</tr>
<tr height="85%">
<td bgcolor="#FFFFFF">
<div id="toolTipText"></div>
</td>
</tr>
</table>
</div>
<TABLE cellSpacing=0 cellPadding=0 width=720 align=center border=0>
  <TBODY>
  <TR>
    <TD><A href="http://www.pune360.com/"><IMG height=73 alt="Pune WebPortal" 
      src="images/logo2.gif" width=235 border=0></A></TD>
    <TD noWrap width="100%">
      <FORM name=form1 
      action=http://www.pune360.com/portal/login.do?action=Login method=post>
      <TABLE cellSpacing=0 cellPadding=2 width=425 align=right border=0>
        <TBODY>
        <TR>
          <TD class=boldtext colSpan=4>Already a member ? Log in here else <A 
            class="title_link style6" 
            href="http://www.pune360.com/portal/editSubscription.do?action=Create"><STRONG>Register</STRONG></A> 
          </TD>
          <TD>&nbsp;</TD></TR>
        <TR class=text>
          <TD width=120><SPAN class=style3>Username</SPAN></TD>
          <TD width=101><SPAN class=style3>Password</SPAN></TD>
          <TD width=118><!--DWLayoutEmptyCell-->&nbsp;</TD>
          <TD width=66>&nbsp;</TD>
          <TD>&nbsp;</TD></TR>
        <TR class=text>
          <TD vAlign=top height=26><INPUT id=userName name=userName></TD>
          <TD vAlign=top>
          <INPUT id=password type=password size=14 name=password>
          </TD>
          <TD colSpan=2><A 
            href="http://www.pune360.com/jsp/ForgotPassword.jsp"><SPAN 
            class=boldtext>Forgot your password? </SPAN></A></TD>
          <TD>&nbsp;</TD></TR>
        <TR class=text>
          <TD vAlign=top colSpan=5 height=35 rowSpan=2>
            <P><INPUT type=image height=27 width=103 
            src="images/signin2.gif" border=0 name=imageField> <A 
            href="http://www.pune360.com/portal/NewAdv.do"><IMG height=25 
            src="images/post_an_ad.gif" width=93 border=0></A> <!--   <a href="http://www.pune360.com/jsp/DealsCat.jsp"><img src="http://www.pune360.com/images/post_deal.gif" width="93" height="25" border="0"></a> --><A 
            href="http://www.pune360.com/jsp/SearchClassifieds.jsp"><IMG 
            height=25 src="images/adv_search.gif" width=138 
            border=0></A> <A 
            href="http://www.pune360.com/jsp/DealsCat.jsp"></A></P></TD></TR></TBODY></TABLE></FORM></TD></TR>
			
			</TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=720 align=center border=0>
  <TBODY>
  <TR>
    <TD><IMG height=20 src="images/border_top2.gif" width=719></TD></TR>
  <TR>
   
  <TR>
    <TD background=images/border_bg2.gif>
	<table width="100%" border="0">
	 <tiles:insert attribute="mainScreenFrame" />	  
	 <TR>
    <TD  colspan="7"><a href="init.do?actionRequest=manageTheaters">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Manage Theaters</a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="manageTimeslots.do?actionRequest=getListTimeSlots"> Manage Timeslots</a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="manageActors.do?actionRequest=getListActors"> Manage Actors </a>&nbsp;&nbsp;&nbsp;&nbsp;    
    <a href="manageMovies.do?actionRequest=getListMovies"> Manage Movies </a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="linkMovies.do?actionRequest=linkMovies"> Link Movies </a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="finalDisplay.do?actionRequest=finalDisplay"> Final Display</a>   
    </TD>
	</TR>
	</table>
	   </TD>
  </TR>
  <TR>
    <TD><IMG height=20 src="images/border_bot2.gif" 
  width=719></TD></TR></TBODY></TABLE><BR><BR>
<TABLE cellSpacing=0 cellPadding=7 width="100%" border=0>
  <TBODY>
  <TR>
    <TD bgColor=#88db23>
      <DIV align=center></DIV></TD><BR>
    <DIV align=center><SPAN 
class=text></SPAN></DIV></TR></TBODY></TABLE></BODY></HTML>
